﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="acpIncluirContratoAditivo.aspx.cs" Inherits="Protegidos_Administracao_Cadastros__popup_acpIncluirContratoAditivo" %>

<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajax" %>
<%@ Register TagPrefix="uc1" TagName="HeadTag"  Src="~/_includes/HeadTag.ascx" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <!-- Includes -->
    <uc1:HeadTag ID="HeadTag1" runat="server" />
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
    <telerik:RadProgressManager ID="RadProgressManager1" runat="server" />
    <script type="text/javascript">
    
            function CloseAndRebind(args)
            {
                GetRadWindow().Close();
                GetRadWindow().BrowserWindow.refreshGrid(args);
            }
    		
            function GetRadWindow()
            {
                var oWindow = null;
                if (window.radWindow) oWindow = window.radWindow; //Will work in Moz in all cases, including clasic dialog
                else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;//IE (and Moz as well)
    				
                return oWindow;
            }

            function CancelEdit()
            {
                GetRadWindow().Close();		
            }
        </script>
        
        <table width="99%" align="right">
            <tr>
                <td>
                    <div class="SuTituloVR">Nova atualização</div>
                </td>
            </tr>
            <tr>
                <td>
                
                    <table width="100%" align="right" class="textoCZ_12" > 
                        <tr>
                            <td style="width: 170px">Título:</td>
                            <td>
                                <asp:TextBox ID="txtTitulo" runat="server" Width="203px"></asp:TextBox>
                                <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator5" ControlToValidate="txtTitulo"
                                    InitialValue="" ErrorMessage="* obrigatório" ValidationGroup="1" />
                            </td>
                        </tr>
                        <tr>
                            <td>Tipo:</td>
                            <td>
                                <telerik:RadComboBox ID="rcbTipo" runat="server" Skin="Telerik" Width="210px" EmptyMessage="Selecione" AllowCustomText="true"
                                    onselectedindexchanged="rcbTipo_SelectedIndexChanged" AutoPostBack="True">
                                    <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
                                </telerik:RadComboBox>
                                <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator4" ControlToValidate="rcbTipo"
                                    InitialValue="" ErrorMessage="* obrigatório" ValidationGroup="1" />
                            </td>
                        </tr>
                        <tr runat="server" id="trInicio">
                            <td>Prorrogação – Início:</td>
                            <td>
                                <telerik:RadDatePicker ID="dtInicio" runat="server" />
                                <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator2" ControlToValidate="dtInicio"
                                    InitialValue="" ErrorMessage="* obrigatório" ValidationGroup="1" />
                            </td>
                        </tr>
                        <tr runat="server" id="trTermino">
                            <td>Prorrogação – Término:</td>
                            <td>
                                <telerik:RadDatePicker ID="dtTermino" runat="server" />
                                <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator3" ControlToValidate="dtTermino"
                                    InitialValue="" ErrorMessage="* obrigatório" ValidationGroup="1" />
                            </td>
                        </tr>
                        <tr runat="server" id="trRecisao">
                            <td>Data da rescisão:</td>
                            <td>
                                <telerik:RadDatePicker ID="dtRescisao" runat="server" />
                                <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator1" ControlToValidate="dtRescisao"
                                    InitialValue="" ErrorMessage="* obrigatório" ValidationGroup="1" />
                            </td>
                        </tr>
                    </table>
                        
                </td>
            </tr>
            <tr>
                <td>
                    <div class="SuTituloVR">Imagem</div>
                </td>
            </tr>
            <tr>
                <td>
                    
                    <div runat="server" id="dvUpload1">
                        <asp:LinkButton ID="lblUpload" runat="server">Clique aqui para incluir imagem de um documento</asp:LinkButton>
                    </div>
                    <div runat="server" id="dvUpload2">
                    
                                <table width="99%" align="right">
                                    <tr runat="server" id="trMsg">
                                        <td>
                                            <span style="font-weight: bold;">Upload de documento [Atualização Contratual]</span>
                                            <p>&nbsp;&nbsp;<span style="font-weight: bold;">Carregue um arquivo de no máximo 300KB</span></p>
                                        </td>
                                    </tr>
                                    <tr runat="server" id="trSeleciona">
                                        <td>
                                            <telerik:RadUpload ID="RadUpload1" runat="server" 
                                                ControlObjectsVisibility="None"
                                                EnableFileInputSkinning="true" 
                                                InitialFileInputsCount="1" 
                                                Culture="Portuguese (Brazil)" Width="400px" Skin="Telerik" 
                                                MaxFileInputsCount="1"  
                                                AllowedFileExtensions=".pdf" >
                                                <Localization Add="Adicionar" Remove="Remover" Select="Procurar..." />
                                            </telerik:RadUpload>
                                            
                                            <asp:CustomValidator ID="Customvalidator1" runat="server" Display="Dynamic" ClientValidationFunction="validateRadUpload1">
                                            <span style="FONT-SIZE: 12px;">Formato inválido!</span>
                                            </asp:CustomValidator>
                                            <br>
                                            <telerik:RadProgressArea id="progressArea1" runat="server" Skin="Default" >
                                                <Localization Uploaded="Enviado" CurrentFileName="Arquivo:" 
                                                    ElapsedTime="Tempo:" EstimatedTime="Tempo estimado:" 
                                                    TotalFiles="Total de arquivos:" TransferSpeed="Velocidade:" 
                                                    UploadedFiles="Arquivos enviados:"></Localization>
                                            </telerik:RadProgressArea>
                                        </td>
                                    </tr>
                                    <tr runat="server" id="trResultado">
                                        <td>
                                            <asp:label id="labelNoResults" runat="server" visible="True">Arquivo não Enviado.</asp:label>
                                            <asp:Repeater id="repeaterResults" runat="server" visible="False">
                                                <HeaderTemplate>
                                                    Arquivo Enviado.<br />
                                                </HeaderTemplate>
                                                <ItemTemplate>
                                                    <span style="font-weight: normal; font-size: 12px; color: black;">
                                                        Arquivo:&nbsp;<%#DataBinder.Eval(Container.DataItem, "FileName").ToString()%><br />
                                                        Tamanho&nbsp;do&nbsp;Arquivo:&nbsp;<%#DataBinder.Eval(Container.DataItem, "ContentLength").ToString() + "&nbsp;bytes"%><br />
                                                        <br /><br />
                                                    </span>
                                                </ItemTemplate>
                                            </asp:Repeater>      
                                        </td>
                                    </tr>
                                </table>
                    
                    </div>
                    <br /><br />
                </td>
            </tr>
            <tr>
                <td align="right">
                    <asp:Button ID="btnGravar" runat="server" Text="Gravar" Width="110px" 
                        ValidationGroup="1" onclick="btnGravar_Click" />&nbsp;&nbsp;
                    <asp:Button ID="btnFechar" runat="server" Text="Fechar" Width="110px" 
                        onclick="btnFechar_Click" />
                </td>
            </tr>
        </table>
    
    </form>
</body>
</html>
